ostbuild: Use correct directory for submodule update
authorColin Walters <walters@verbum.org>
Wed, 22 Feb 2012 19:17:18 +0000 (14:17 -0500)
committerColin Walters <walters@verbum.org>
Wed, 22 Feb 2012 19:17:18 +0000 (14:17 -0500)
src/ostbuild/pyostbuild/vcs.py

index cbb6b0e7d55eb9816442411a9e1e377c5e19408c..00d936d0d3ec20592e713bb90f408bde7da3e4a7 100755 (executable)
@@ -63,7 +63,7 @@ def get_vcs_checkout(mirrordir, keytype, uri, dest, branch, overwrite=True):
     run_sync(['git', 'submodule', 'init'], cwd=tmp_dest)
     have_submodules = _fixup_submodule_references(mirrordir, tmp_dest)
     if have_submodules:
-        run_sync(['git', 'submodule', 'update'])
+        run_sync(['git', 'submodule', 'update'], cwd=tmp_dest)
     os.rename(tmp_dest, dest)
     return dest